import 'package:flutter/material.dart';

class CampusPage extends StatefulWidget {
  const CampusPage({super.key});

  @override
  State<CampusPage> createState() => _CampusPageState();
}

class _CampusPageState extends State<CampusPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("校园风采"),
      ),
      body: Center(
          child: ListView(
        children: <Widget>[
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/school.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("综合楼"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/campus1.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("教学楼"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/campus2.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("操场"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/campus3.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("俯瞰吉动"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/campus4.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("天桥"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/campus5.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("产业园"))
              ],
            ),
          ),
        ],
      )),
    );
  }
}
